package com.hanzhong.travel.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 美食实体类
 */
public class Food {
    // 主键ID
    private Long id;
    // 美食名称
    private String name;
    // 美食描述
    private String description;
    // 图片路径
    private String image;
    // 参考价格
    private BigDecimal price;
    // 美食分类
    private String category;
    // 推荐地址
    private String address;
    // 评分
    private BigDecimal rating;
    // 创建时间
    private Date createTime;
    // 更新时间
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getRating() {
        return rating;
    }

    public void setRating(BigDecimal rating) {
        this.rating = rating;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", image='" + image + '\'' +
                ", price=" + price +
                ", category='" + category + '\'' +
                ", address='" + address + '\'' +
                ", rating=" + rating +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
} 